package com.ruoyi.source.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.source.mapper.FreightUserMapper;
import com.ruoyi.source.domain.FreightUser;
import com.ruoyi.source.service.IFreightUserService;

/**
 * 运货人所属用户Service业务层处理
 * 
 * @author lml
 * @date 2025-01-06
 */
@Service
public class FreightUserServiceImpl implements IFreightUserService 
{
    @Autowired
    private FreightUserMapper freightUserMapper;

    /**
     * 查询运货人所属用户
     * 
     * @param id 运货人所属用户主键
     * @return 运货人所属用户
     */
    @Override
    public FreightUser selectFreightUserById(Long id)
    {
        return freightUserMapper.selectFreightUserById(id);
    }

    /**
     * 查询运货人所属用户列表
     *
     * @param freightUser 运货人所属用户
     * @return 运货人所属用户
     */
    @Override
    public List<FreightUser> selectFreightUserList(FreightUser freightUser)
    {
        return freightUserMapper.selectFreightUserList(freightUser);
    }

    /**
     * 新增运货人所属用户
     * 
     * @param freightUser 运货人所属用户
     * @return 结果
     */
    @Override
    public int insertFreightUser(FreightUser freightUser)
    {
        return freightUserMapper.insertFreightUser(freightUser);
    }

    /**
     * 修改运货人所属用户
     * 
     * @param freightUser 运货人所属用户
     * @return 结果
     */
    @Override
    public int updateFreightUser(FreightUser freightUser)
    {
        return freightUserMapper.updateFreightUser(freightUser);
    }

    /**
     * 批量删除运货人所属用户
     * 
     * @param ids 需要删除的运货人所属用户主键
     * @return 结果
     */
    @Override
    public int deleteFreightUserByIds(Long[] ids)
    {
        return freightUserMapper.deleteFreightUserByIds(ids);
    }

    /**
     * 删除运货人所属用户信息
     * 
     * @param id 运货人所属用户主键
     * @return 结果
     */
    @Override
    public int deleteFreightUserById(Long id)
    {
        return freightUserMapper.deleteFreightUserById(id);
    }
}
